package com.ccstation.churchconnect

class ChurchController {
    
	def index = { redirect(action:list,params:params) }

	def list = {
        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
        [ churchInstanceList: Church.list( params ), 
          churchInstanceTotal: Church.count() ]
    }
}
